package com.example.noobpackage.logic.network

import androidx.lifecycle.LiveData
import com.example.noobpackage.logic.model.MarketPackageData
import retrofit2.http.*

interface MarketPackageService {
    @GET("loadMarketPackages")
    suspend fun loadMarketPackages(@Query("account") account: Long): List<MarketPackageData>

    @FormUrlEncoded
    @POST("acceptMarketPackage")
    suspend fun acceptMarketPackage(
        @Field("marketId") marketId: String,
        @Field("account") account: Long
    ): MarketAcceptResponse
}